<!--
 * @Description: 函数渲染组件
 * @Author: Ag
 * @LastEditors: Ag
 * @LastEditTime: 2024-02-05 16:23:45
 * Copyright (c) 2023 by CIGLINK, All Rights Reserved. 
-->
<script setup lang="ts">
import type { RenderFunction } from 'vue'
import { h } from 'vue'

const props = withDefaults(
  defineProps<{
    render: RenderFunction
  }>(),
  {
    render: () => h('span', null, '')
  }
)
</script>

<template>
  <component :is="props.render" />
</template>
